<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能预测 - 智能彩票预测助手</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #1E88E5;
            --secondary-color: #FFC107;
            --background-color: #F5F5F5;
            --text-color: #333333;
        }

        body {
            background-color: var(--background-color);
            color: var(--text-color);
        }

        .navbar {
            background-color: var(--primary-color);
            color: white;
        }

        .sidebar {
            background-color: white;
            min-height: calc(100vh - 56px);
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        }

        .nav-link {
            color: var(--text-color);
        }

        .nav-link:hover {
            background-color: var(--background-color);
        }

        .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        .card {
            border: none;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .prediction-model {
            cursor: pointer;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 10px;
            transition: all 0.3s;
        }

        .prediction-model:hover {
            background-color: var(--background-color);
        }

        .prediction-model.selected {
            background-color: var(--primary-color);
            color: white;
        }

        .lottery-number {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            margin: 0 5px;
            font-weight: bold;
        }

        .lottery-number.special {
            background-color: var(--secondary-color);
        }

        .confidence-bar {
            height: 20px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .confidence-level {
            height: 100%;
            background-color: var(--primary-color);
            transition: width 1s ease-in-out;
        }

        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                top: 56px;
                left: -100%;
                width: 100%;
                z-index: 1000;
                transition: left 0.3s;
            }

            .sidebar.show {
                left: 0;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="index.html">
                <i class="bi bi-graph-up"></i> 智能彩票预测助手
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="bi bi-person"></i> 登录</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container-fluid">
        <div class="row">
            <!-- 侧边栏 -->
            <div class="col-md-3 col-lg-2 sidebar p-0">
                <div class="list-group list-group-flush">
                    <a href="index.html" class="list-group-item list-group-item-action">
                        <i class="bi bi-house-door"></i> 首页
                    </a>
                    <a href="prediction.html" class="list-group-item list-group-item-action active">
                        <i class="bi bi-magic"></i> 智能预测
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-book"></i> 规则解读
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-clock-history"></i> 历史数据
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-bar-chart"></i> 数据分析
                    </a>
                    <a href="#" class="list-group-item list-group-item-action">
                        <i class="bi bi-person-circle"></i> 个人中心
                    </a>
                </div>
            </div>

            <!-- 主内容区 -->
            <div class="col-md-9 col-lg-10 p-4">
                <!-- 彩票类型选择 -->
                <div class="card mb-4">
                    <div class="card-body">
                        <h5 class="card-title">选择彩票类型</h5>
                        <select class="form-select" id="lotteryType">
                            <option value="ssq">双色球</option>
                            <option value="dlt">大乐透</option>
                            <option value="fc3d">福彩3D</option>
                        </select>
                    </div>
                </div>

                <!-- 预测模型选择 -->
                <div class="card mb-4">
                    <div class="card-body">
                        <h5 class="card-title">选择预测模型</h5>
                        <div class="prediction-model" data-model="frequency">
                            <h6><i class="bi bi-bar-chart-line"></i> 历史频率分析</h6>
                            <p class="mb-0">基于历史开奖号码出现频率进行预测</p>
                        </div>
                        <div class="prediction-model" data-model="missing">
                            <h6><i class="bi bi-clock-history"></i> 遗漏值分析</h6>
                            <p class="mb-0">分析号码遗漏值进行预测</p>
                        </div>
                        <div class="prediction-model" data-model="ai">
                            <h6><i class="bi bi-cpu"></i> AI智能预测</h6>
                            <p class="mb-0">使用AI模型进行智能预测</p>
                        </div>
                        <div class="prediction-model" data-model="custom">
                            <h6><i class="bi bi-gear"></i> 自定义策略</h6>
                            <p class="mb-0">根据自定义规则进行预测</p>
                        </div>
                    </div>
                </div>

                <!-- 预测结果 -->
                <div class="card mb-4">
                    <div class="card-body">
                        <h5 class="card-title">预测结果</h5>
                        <div class="text-center mb-4">
                            <div class="lottery-number">01</div>
                            <div class="lottery-number">07</div>
                            <div class="lottery-number">12</div>
                            <div class="lottery-number">23</div>
                            <div class="lottery-number">28</div>
                            <div class="lottery-number">33</div>
                            <div class="lottery-number special">16</div>
                        </div>
                        <div class="mb-3">
                            <label class="form-label">预测置信度</label>
                            <div class="confidence-bar">
                                <div class="confidence-level" style="width: 75%"></div>
                            </div>
                            <small class="text-muted">75%</small>
                        </div>
                        <div class="mb-3">
                            <label class="form-label">分析依据</label>
                            <p class="mb-0">基于近100期开奖数据分析，结合AI模型预测，该号码组合具有较高的出现概率。</p>
                        </div>
                    </div>
                </div>

                <!-- 免责声明 -->
                <div class="alert alert-warning" role="alert">
                    <i class="bi bi-exclamation-triangle"></i>
                    免责声明：本预测结果仅供参考，不构成购彩建议。彩票为概率游戏，请理性购彩，量力而行。
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 移动端侧边栏切换
        document.querySelector('.navbar-toggler').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('show');
        });

        // 预测模型选择
        document.querySelectorAll('.prediction-model').forEach(model => {
            model.addEventListener('click', function() {
                // 移除其他模型的选中状态
                document.querySelectorAll('.prediction-model').forEach(m => {
                    m.classList.remove('selected');
                });
                // 添加当前模型的选中状态
                this.classList.add('selected');
            });
        });

        // 彩票类型切换
        document.getElementById('lotteryType').addEventListener('change', function() {
            // 这里可以添加切换彩票类型后的逻辑
            console.log('Selected lottery type:', this.value);
        });
    </script>
</body>
</html> 